package com.dingup.paike.util;

import com.dingup.api.enums.log.PkLessonLogEnum;
import org.apache.commons.lang.StringUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wancheng on 2018/10/13.
 */
public class PkLoggerUtil {

    public static List<String> getPkLessonDescription(List<String> objs){
        List<String> descs = new ArrayList<>();
        objs.stream().forEach(
                o -> {
                    String content = PkLessonLogEnum.getDescription(o);
                    if(!StringUtils.isEmpty(content)){
                        descs.add(content);
                    }
                }
        );
        return descs;
    }
}
